package c.e.a.b.f.b;

import android.os.Bundle;
import b.i.b.f;
import c.e.a.b.e.c.z7;
import com.google.android.gms.measurement.internal.zzaq;
import com.google.android.gms.measurement.internal.zzku;
import com.google.android.gms.measurement.internal.zzz;
import com.huawei.hms.jos.games.ranking.RankingConst;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class p6 implements Runnable {
    public final /* synthetic */ Bundle a;
    public final /* synthetic */ c6 b;

    public p6(c6 c6Var, Bundle bundle) {
        this.b = c6Var;
        this.a = bundle;
    }

    public final void run() {
        c6 c6Var = this.b;
        Bundle bundle = this.a;
        String str = "creation_timestamp";
        String str2 = "origin";
        String str3 = HiAnalyticsConstant.BI_KEY_APP_ID;
        c6Var.g();
        c6Var.t();
        Objects.requireNonNull(bundle, "null reference");
        String str4 = RankingConst.RANKING_JGW_NAME;
        f.N(bundle.getString(str4));
        if (c6Var.a.i()) {
            zzku zzku = new zzku(bundle.getString(str4), 0, null, null);
            try {
                t9 k = c6Var.k();
                String string = bundle.getString(str3);
                String string2 = bundle.getString("expired_event_name");
                Bundle bundle2 = bundle.getBundle("expired_event_params");
                String string3 = bundle.getString(str2);
                long j = bundle.getLong(str);
                boolean z = z7.a() && c6Var.a.g.o(p.L0);
                zzaq B = k.B(string, string2, bundle2, string3, j, true, z);
                str3 = bundle.getString(str3);
                str4 = bundle.getString(str2);
                long j2 = bundle.getLong(str);
                boolean z2 = bundle.getBoolean("active");
                String string4 = bundle.getString("trigger_event_name");
                long j3 = bundle.getLong("trigger_timeout");
                j = bundle.getLong("time_to_live");
                zzz zzz = r3;
                zzz zzz2 = new zzz(str3, str4, zzku, j2, z2, string4, null, j3, null, j, B);
                c6Var.p().y(zzz);
                return;
            } catch (IllegalArgumentException unused) {
                return;
            }
        }
        c6Var.d().n.a("Conditional property not cleared since app measurement is disabled");
    }
}
